HAL HSEM macros migration

This section provides information about the HAL HSEM macros migration.

HAL HSEM clear flag macro

HAL1

HAL2

#define __HAL_HSEM_CLEAR_FLAG(__SEM_MASK__)
Removed; use __STATIC_INLINE void LL_HSEM_ClearFlag(uint32_t sem_mask) instead.

HAL HSEM disable IT macro

HAL1

HAL2

#define __HAL_HSEM_DISABLE_IT(__SEM_MASK__)
Removed; use __STATIC_INLINE void LL_HSEM_DisableIT(uint32_t sem_mask) instead.

HAL HSEM enable interrupt macro

HAL1

HAL2

#define __HAL_HSEM_ENABLE_IT(__SEM_MASK__)
Removed; use __STATIC_INLINE void LL_HSEM_EnableIT(uint32_t sem_mask) instead.

HAL HSEM get flag macro

HAL1

HAL2

#define __HAL_HSEM_GET_FLAG(__SEM_MASK__)
/*or*/
#define __HAL_HSEM_GET_IT(__SEM_MASK__)
Removed; use __STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag(uint32_t sem_id) instead.

HAL HSEM semaphore ID to mask macro

HAL1

HAL2

#define __HAL_HSEM_SEMID_TO_MASK(__SEMID__)
In HAL2, this macro is removed. It was used internally in HAL1 and did not affect user-level operations.